package demo1;

public class Test {
    public static void drawFuc(Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        drawFuc(new Circle());
        drawFuc(new Rectangle());
        drawFuc(new Triangle());
    }
    public static void main1(String[] args) {
        new Circle().draw();
        new Rectangle().draw();
        new Triangle().draw();
    }
}
